/**
 * 
 */
package com.maohi.software.arii.utils;

import java.io.File;
import java.io.FileFilter;

/**
 * @author heifara
 * 
 */
public class FileFilters {

	public static FileFilter withExtension(final String aExtension) {
		return new FileFilter() {

			@Override
			public boolean accept(File aPathname) {
				if (aPathname.getName().endsWith(aExtension)) {
					return true;
				} else {
					return false;
				}
			}
		};
	}

}
